let gameName = "darkly"
let gameId = 11300
let reserveDataUrl = "https://admin-api.gzlcgame.com/api/tap/stats-total/731726"
const ChargeTypes = {
    demo: {
        1: { name: '6元首冲礼包', money: 6.00, money1: 0.01, buyType: 'unique', items: [['vipExp', 6], ['gold', 25000], ['diamond', 200], [200001, 30], [200005, 50], [200031, 2], [200032, 1], [200025, 6]], sort: 1 },
        2: { name: '月卡', money: 30.00, money1: 0.01, buyType: 'monthVip', items: [['vipExp', 2], ['diamond', 100], [200032, 1]] },
        3: { name: '每日礼包', money: 20.00, money1: 0.01, buyType: 'day', items: [['vipExp', 20], ['diamond', 200], [200034, 2], [200005, 50], [200032, 2]] },

        4: { name: '每周礼包', money: 66.00, money1: 0.01, buyType: 'week', items: [['vipExp', 66], ['diamond', 1200], [200002, 40], [200003, 40], [200032, 10]] },
        5: { name: '开荒礼包', money: 58.00, money1: 0.01, buyType: 'unique', items: [['vipExp', 58], ['gold', 100000], ['diamond', 500], [200005, 100], [200010, 10], [200032, 2]] },
        6: { name: '钻石x300', money: 10.00, money1: 0.01, buyType: 'diamond', items: [['vipExp', 10], ['diamond', 300]], type: 1, attach: { type: 1, addPer: 30 } },
        7: { name: '钻石x900', money: 30.00, money1: 0.01, buyType: 'diamond', items: [['vipExp', 30], ['diamond', 900]], type: 1, attach: { type: 1, addPer: 30 } },
        8: { name: '钻石x1800', money: 60.00, money1: 0.01, buyType: 'diamond', items: [['vipExp', 60], ['diamond', 1800]], type: 1, attach: { type: 1, addPer: 30 } },
        9: { name: '钻石x2700', money: 90.00, money1: 0.01, buyType: 'diamond', items: [['vipExp', 90], ['diamond', 2700]], type: 1, attach: { type: 1, addPer: 30 } },
        10: { name: '钻石x3840', money: 128.00, money1: 0.01, buyType: 'diamond', items: [['vipExp', 128], ['diamond', 3840]], type: 0, attach: { type: 0, addPer: 20 } },
        11: { name: '钻石x19440', money: 648.00, money1: 0.01, buyType: 'diamond', items: [['vipExp', 648], ['diamond', 19440]], type: 0, attach: { type: 0, addPer: 20 } },
        12: { name: '闯关礼包1', money: 20.00, money1: 0.01, buyType: 'adventure', value: 200, items: [['gold', 150000], [200001, 500], [200005, 200], [200031, 3]] },
        13: { name: '闯关礼包2', money: 20.00, money1: 0.01, buyType: 'adventure', value: 500, items: [['gold', 400000], [200011, 10], [200005, 200], [200031, 3]] },
        14: { name: '闯关礼包3', money: 40.00, money1: 0.01, buyType: 'adventure', value: 1000, items: [['gold', 800000], [200003, 20], [200006, 100], [200032, 3], [200022, 10]] },
        15: { name: '闯关礼包4', money: 20.00, money1: 0.01, buyType: 'adventure', value: 1500, items: [['gold', 1200000], [200035, 10], [200005, 200], [200031, 3]] },
        16: { name: '闯关礼包5', money: 40.00, money1: 0.01, buyType: 'adventure', value: 2000, items: [['gold', 1500000], [200036, 10], [200032, 3], [200022, 10]] },
        17: { name: '闯关礼包6', money: 20.00, money1: 0.01, buyType: 'adventure', value: 2500, items: [['gold', 1800000], [200003, 20], [200005, 200], [200031, 3]] },
        18: { name: '闯关礼包7', money: 40.00, money1: 0.01, buyType: 'adventure', value: 3000, items: [['gold', 2200000], [200003, 20], [200032, 3], [200025, 10]] },
        19: { name: '闯关礼包8', money: 20.00, money1: 0.01, buyType: 'adventure', value: 3500, items: [['gold', 2500000], [200003, 20], [200005, 400], [200032, 3]] },
        20: { name: '闯关礼包9', money: 20.00, money1: 0.01, buyType: 'adventure', value: 4000, items: [['gold', 3000000], [200003, 40], [200005, 400], [200032, 3]] },
        // 21: { name: '新春礼包', money: 30.00, money1: 0.01, buyType: 'day', items: [['vipExp', 30], ['diamond', 400], [200034, 4], [200005, 80], [200032, 4]] },
        // 22: { name: '新春贺彩', money: 88.00, money1: 0.01, buyType: 'day', items: [['vipExp', 88], ['diamond', 1000], [200002, 60], [200003, 60], [200032, 16]] },
        21: { name: '白银礼包', money: 328.00, buyType: 'unique', items: [['vipExp', 328], ['gold', 700000], ['diamond', 10000], [200034, 10], [200001, 300], [200005, 200], [200003, 200], [200032, 5], [200025, 20]] },
        22: { name: '黄金礼包', money: 648.00, buyType: 'unique', items: [['vipExp', 648], ['gold', 1500000], ['diamond', 20000], [200034, 20], [200001, 500], [200005, 500], [200040, 200], [200032, 10], [200025, 50]] },
        23: { name: '至尊卡', money: 198.00, buyType: 'unique',  yearVip: true, items: [['diamond', 3000], [200025, 30], [200032, 20]] },
    },
    pro: {
        1: { name: '6元首冲礼包', money: 6.00, buyType: 'unique', items: [['vipExp', 6], ['gold', 25000], ['diamond', 200], [200001, 30], [200005, 50], [200031, 2], [200032, 1], [200025, 6]], sort: 1 },
        2: { name: '月卡', money: 30.00, buyType: 'monthVip', items: [['vipExp', 2], ['diamond', 100], [200032, 1]] },
        3: { name: '每日礼包', money: 20.00, buyType: 'day', items: [['vipExp', 20], ['diamond', 200], [200034, 2], [200005, 50], [200032, 2]] },

        4: { name: '每周礼包', money: 66.00, buyType: 'week', items: [['vipExp', 66], ['diamond', 1200], [200002, 40], [200003, 40], [200032, 10]] },
        5: { name: '开荒礼包', money: 58.00, buyType: 'unique', items: [['vipExp', 58], ['gold', 100000], ['diamond', 500], [200005, 100], [200010, 10], [200032, 2]] },
        6: { name: '钻石x300', money: 10.00, buyType: 'diamond', items: [['vipExp', 10], ['diamond', 300]], type: 1, attach: { type: 1, addPer: 30 } },
        7: { name: '钻石x900', money: 30.00, buyType: 'diamond', items: [['vipExp', 30], ['diamond', 900]], type: 1, attach: { type: 1, addPer: 30 } },
        8: { name: '钻石x1800', money: 60.00, buyType: 'diamond', items: [['vipExp', 60], ['diamond', 1800]], type: 1, attach: { type: 1, addPer: 30 } },
        9: { name: '钻石x2700', money: 90.00, buyType: 'diamond', items: [['vipExp', 90], ['diamond', 2700]], type: 1, attach: { type: 1, addPer: 30 } },
        10: { name: '钻石x3840', money: 128.00, buyType: 'diamond', items: [['vipExp', 128], ['diamond', 3840]], type: 0, attach: { type: 0, addPer: 20 } },
        11: { name: '钻石x19440', money: 648.00, buyType: 'diamond', items: [['vipExp', 648], ['diamond', 19440]], type: 0, attach: { type: 0, addPer: 20 } },
        12: { name: '闯关礼包1', money: 20.00, buyType: 'adventure', value: 200, items: [['gold', 150000], [200001, 500], [200005, 200], [200031, 3]] },
        13: { name: '闯关礼包2', money: 20.00, buyType: 'adventure', value: 500, items: [['gold', 400000], [200011, 10], [200005, 200], [200031, 3]] },
        14: { name: '闯关礼包3', money: 40.00, buyType: 'adventure', value: 1000, items: [['gold', 800000], [200003, 20], [200006, 100], [200032, 3], [200022, 10]] },
        15: { name: '闯关礼包4', money: 20.00, buyType: 'adventure', value: 1500, items: [['gold', 1200000], [200035, 10], [200005, 200], [200031, 3]] },
        16: { name: '闯关礼包5', money: 40.00, buyType: 'adventure', value: 2000, items: [['gold', 1500000], [200036, 10], [200032, 3], [200022, 10]] },
        17: { name: '闯关礼包6', money: 20.00, buyType: 'adventure', value: 2500, items: [['gold', 1800000], [200003, 20], [200005, 200], [200031, 3]] },
        18: { name: '闯关礼包7', money: 40.00, buyType: 'adventure', value: 3000, items: [['gold', 2200000], [200003, 20], [200032, 3], [200025, 10]] },
        19: { name: '闯关礼包8', money: 20.00, buyType: 'adventure', value: 3500, items: [['gold', 2500000], [200003, 20], [200005, 400], [200032, 3]] },
        20: { name: '闯关礼包9', money: 20.00, buyType: 'adventure', value: 4000, items: [['gold', 3000000], [200003, 40], [200005, 400], [200032, 3]] },
        // 21: { name: '新春礼包', money: 30.00, money1: 0.01, buyType: 'day', items: [['vipExp', 30], ['diamond', 400], [200034, 4], [200005, 80], [200032, 4]] },
        // 22: { name: '新春贺彩', money: 88.00, money1: 0.01, buyType: 'day', items: [['vipExp', 88], ['diamond', 1000], [200002, 60], [200003, 60], [200032, 16]] },
        21: { name: '白银礼包', money: 328.00, buyType: 'unique', items: [['vipExp', 328], ['gold', 700000], ['diamond', 10000], [200034, 10], [200001, 300], [200005, 200], [200003, 200], [200032, 5], [200025, 20]] },
        22: { name: '黄金礼包', money: 648.00, buyType: 'unique', items: [['vipExp', 648], ['gold', 1500000], ['diamond', 20000], [200034, 20], [200001, 500], [200005, 500], [200040, 200], [200032, 10], [200025, 50]] },
        23: { name: '至尊卡', money: 198.00, buyType: 'unique', yearVip: true, items: [['diamond', 3000], [200025, 30], [200032, 20]] },
    },
}

let cumulativeRecharge = [ //累充奖励
    {
        money: 6, itemList: [
             [200001, 15], [200005, 10],
        ]
    },
    {
        money: 30, itemList: [
             [200001, 20], [200005, 15], [200031, 1],
        ]
    },
    {
        money: 50, itemList: [
             [200001, 30], [200005, 15], [200031, 1], 
        ]
    },
    {
        money: 200, itemList: [
            ["gold", 50000], [200001, 50], [200005, 20], [200031, 2],
        ]
    },
    {
        money: 500, itemList: [
            ["gold", 100000], [200001, 100], [200005, 50], [200032, 1], [200022, 5]
        ]
    },
    {
        money: 1000, itemList: [
            ["gold", 150000], [200001, 150], [200005, 100], [200032, 2], [200022, 5]
        ]
    },
    {
        money: 2000, itemList: [
            ["gold", 200000], [200003, 100], [200010, 10], [200011, 10], [200032, 3], [200022, 10]
        ]
    },
    {
        money: 3000, itemList: [
            [200033, 2], [200006, 50], [200012, 10], [200013, 10], [200032, 5], [200025, 5]
        ]
    },
    {
        money: 5000, itemList: [
            [200034, 2], [200003, 100], [200014, 10], [200015, 10], [200032, 5], [200025, 10]
        ]
    },
    {
        money: 10000, itemList: [
            [200034, 5], [200002, 50], [200006, 50], [200035, 50], [200036, 50], [200037, 50], [200038, 50], [200039, 50], [200032, 5], [200022, 10], [200025, 10]
        ]
    }
]
var config = {
    gameName: gameName,
    gameId: gameId,
    pro: {
        gameName: `${gameName}pro`,
        port: gameId + 1,
        masterPort: gameId + 2,
        mongodbName: `${gameName}pro`,
        mongodbUrl: "mongodb://root:123456789qwe@localhost:27017",
        chargeTypes: ChargeTypes['pro'],
        reserveDataUrl,
        cumulativeRecharge,
    },
    adminPro: {
        gameName: `${gameName}pro`,
        port: gameId + 11,
        serverMasterPort: gameId + 2,
        mongodbUrl: "mongodb://root:123456789qwe@localhost:27017",
        mongodbName: `${gameName}pro`,
        chargeTypes: ChargeTypes['pro'],
        reserveDataUrl,
        cumulativeRecharge,
    },

    dev: {
        gameName: `${gameName}dev`,
        port: gameId + 3,
        masterPort: gameId + 4,
        mongodbUrl: "mongodb://127.0.0.1:27017",
        // mongodbUrl: "mongodb://root:123456789qwe@localhost:27017",
        mongodbName: `${gameName}dev`,
        chargeTypes: ChargeTypes['demo'],
        reserveDataUrl,
        cumulativeRecharge
    },
    adminDev: {
        gameName: `${gameName}dev`,
        port: gameId + 13,
        serverMasterPort: gameId + 4,
        mongodbUrl: "mongodb://127.0.0.1:27017",
        // mongodbUrl: "mongodb://root:123456789qwe@localhost:27017",
        mongodbName: `${gameName}dev`,
        chargeTypes: ChargeTypes['demo'],
        reserveDataUrl,
        cumulativeRecharge,
    },
    demo: {
        gameName: `${gameName}demo`,
        port: gameId + 5,
        masterPort: gameId + 6,
        mongodbUrl: "mongodb://root:123456789qwe@localhost:27017",
        mongodbName: `${gameName}demo`,
        chargeTypes: ChargeTypes['demo'],
        reserveDataUrl: null,
        cumulativeRecharge
    },
    adminDemo: {
        gameName: `${gameName}demo`,
        port: gameId + 15,
        serverMasterPort: gameId + 6,
        mongodbUrl: "mongodb://root:123456789qwe@localhost:27017",
        mongodbName: `${gameName}demo`,
        chargeTypes: ChargeTypes['demo'],
        reserveDataUrl: null,
        cumulativeRecharge,
    },
}
export default config